package com.ruoyi.Echarts.service.impl;

import com.ruoyi.Echarts.domain.PaperEchartsVO;
import com.ruoyi.Echarts.mapper.EchartsMapper;
import com.ruoyi.Echarts.service.PaperEcharts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName:com.ruoyi.Echarts.service.impl
 * @ClassName: PaperEchartsImpl
 * @Description: TODO
 * @Author TZY
 * @Date 2023/3/15 13:38
 * @Version 1.0
 */
@Service
public class PaperEchartsImpl implements PaperEcharts {

    @Autowired
    private EchartsMapper echartsMapper;

    public List<PaperEchartsVO> YearCount(){
        return echartsMapper.selectPaperYear();
    }

    @Override
    public List<PaperEchartsVO> MonthCount(String time) {
        return echartsMapper.selectPaperMonthByYear(time);
    }

    @Override
    public List<PaperEchartsVO> PaperSource() {
        return echartsMapper.selectPaperSource();
    }
}
